package com.bootlever.framework.redis.cfg;


import com.bootlever.framework.redis.cfg.redisson.RedissonClusterConfig;
import com.bootlever.framework.redis.cfg.redisson.RedissonSentinelConfig;
import com.bootlever.framework.redis.cfg.redisson.RedissonSingletonConfig;
import com.bootlever.framework.redis.constant.EnumRedisType;
import org.redisson.config.*;

public class BootLeverRedissonConfig extends Config {

    private static final boolean DEFAULT_AUTO_CONFIGURATION = true;

    private boolean autoconfiguration = DEFAULT_AUTO_CONFIGURATION;
    private RedissonSingletonConfig singleton = new RedissonSingletonConfig();
    private RedissonSentinelConfig sentinel = new RedissonSentinelConfig();
    private RedissonClusterConfig cluster = new RedissonClusterConfig();

    public RedissonSingletonConfig getSingleton() {
        return singleton;
    }

    public void setSingleton(RedissonSingletonConfig singleton) {
        this.singleton = singleton;
    }

    public RedissonSentinelConfig getSentinel() {
        return sentinel;
    }

    public void setSentinel(RedissonSentinelConfig sentinel) {
        this.sentinel = sentinel;
    }

    public RedissonClusterConfig getCluster() {
        return cluster;
    }

    public void setCluster(RedissonClusterConfig cluster) {
        this.cluster = cluster;
    }
}
